home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / sipp / libsipp / makefile < prev    next >
Encoding:
Makefile  |  1992-05-03  |  2.6 KB  |  81 lines

  1. #
  2. # Makefile for libsipp.a
  3. #
  4.  
  5. #These values are default if they are not overridden from the command line:
  6. CC = gcc -traditional
  7. CFLAGS = -pipe -O2 -I.
  8.  
  9. SHELL = /bin/sh
  10. RM = rm -f
  11.  
  12. IHDRS = bezier.h lightsource.h noise.h objects.h rendering.h smalloc.h \
  13.         viewpoint.h pixel.h
  14. EHDRS = sipp.h geometric.h shaders.h primitives.h sipp_pixmap.h sipp_bitmap.h
  15. HDRS = $(IHDRS) $(EHDRS)
  16. SRCS =  rendering.c geometric.c lightsource.c objects.c smalloc.c \
  17.         transforms.c viewpoint.c pixel.c \
  18.     basic_shader.c mask.c marble.c granite.c noise.c bozo.c bumpy.c \
  19.     planet.c wood.c phong.c strauss.c\
  20.     prism.c cone.c ellipsoid.c torus.c bezier.c bezier_lex.l \
  21.         sipp_pixmap.c sipp_bitmap.c
  22. OBJS = rendering.o geometric.o lightsource.o objects.o smalloc.o \
  23.        transforms.o viewpoint.o basic_shader.o marble.o granite.o mask.o\
  24.        bozo.o bumpy.o planet.o noise.o bezier.o bezier_lex.o pixel.o\
  25.        torus.o cone.o ellipsoid.o prism.o sipp_pixmap.o sipp_bitmap.o\
  26.        wood.o xalloca.o phong.o strauss.o
  27.  
  28.  
  29. # These are used if no other values are given at the command line:
  30. LIBDIR = /usr/local/lib
  31. INCLUDEDIR = /usr/local/include
  32.  
  33.  
  34. all: libsipp.a
  35.  
  36. libsipp.a:      $(OBJS)
  37.     ar rv $@ $?
  38.     -ranlib $@
  39.  
  40. install: libsipp.a $(EHDRS)
  41.     cp libsipp.a $(LIBDIR)
  42.     cp $(EHDRS) $(INCLUDEDIR)
  43.  
  44.  
  45. tags:
  46.     etags -t $(HDRS) $(SRCS)
  47.  
  48. clean: 
  49.     $(RM) *.o *~ TAGS bezier_lex.c libsipp.a
  50.  
  51.  
  52. rendering.o:         sipp.h rendering.h lightsource.h geometric.h \
  53.                      objects.h sipp_bitmap.h viewpoint.h
  54. geometric.o:         geometric.h sipp.h
  55. lightsource.o:       geometric.h lightsource.h sipp.h
  56. objects.o:           sipp.h
  57. pixel.o:             pixel.h sipp.h
  58. smalloc.o:           
  59. transforms.o:        geometric.h sipp.h
  60. viewpoint.o:         geometric.h smalloc.h viewpoint.h sipp.h
  61. basic_shader.o:      sipp.h geometric.h
  62. strauss.o:           sipp.h shaders.h geometric.h
  63. mask.o:              shaders.h sipp.h
  64. marble.o:            noise.h shaders.h sipp.h
  65. granite.o:           noise.h shaders.h sipp.h
  66. bozo.o:              noise.h shaders.h sipp.h
  67. bumpy.o:             noise.h shaders.h sipp.h geometric.h
  68. planet.o:            noise.h sipp.h geometric.h
  69. wood.o:              noise.h shaders.h sipp.h
  70. phong.o:             sipp.h shaders.h geometric.h
  71. noise.o:             noise.h sipp.h
  72. bezier.o:            bezier.h sipp.h  primitives.h
  73. bezier_lex.o:        bezier_lex.c bezier.h
  74. torus.o:             sipp.h primitives.h
  75. ellipsoid.o:         sipp.h primitives.h
  76. prism.o:             sipp.h primitives.h
  77. cone.o:              sipp.h primitives.h
  78. sipp_pixmap.o:       sipp_pixmap.h sipp.h
  79. sipp_bitmap.o:       sipp_bitmap.h sipp.h
  80. xalloca.o:           xalloca.h
  81.